using UnityEngine;
using Yoozoo.Libs;

namespace Gameplay.PVE.TurnBase
{
    public class SpecialAction : IClass
    {
        protected BattleUnit unit;
        protected EActionState state;
        
        protected enum EActionState
        {
            None,
            Working,
        }
        
        public bool IsWorking
        {
            get { return state == EActionState.Working; }   
        }
        
        void IClass.OnReset()
        {
            
        }
        
        public virtual void Init(BattleUnit unit)
        {
            Reset();
            this.unit = unit;
        }

        public virtual void Update()
        {
            
        }
        
        public virtual void Reset()
        {
            state = EActionState.None;
        }
    }
}